// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import './assets/css/reset.css'
import './assets/js/rem'
import store from './store'
import Axios from 'axios'
Vue.config.productionTip = false

Vue.prototype.$axios = Axios   //暴露出$axios口，继承Axios库，在项目中就可以直接用this.$axios调用了，
// Vue.prototype.HOST='/api';
Axios.defaults.baseURL = '/api'
Axios.defaults.headers.post['Content-Type'] = 'application/json';

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
